package com.yun.space.service.impl;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.stereotype.Service;

import com.yun.space.base.BaseDaoImpl;
import com.yun.space.entity.AHerf;
import com.yun.space.entity.MainContent;
import com.yun.space.service.AHerfService;

/**
 * JiaQi
 * @author Okami
 *
 */
@Service
@Transactional
public class AHerfServiceImpl extends BaseDaoImpl<AHerf> implements AHerfService{
	public List<MainContent> findByType(Integer type) {
		return getSession().createQuery("from AHerf where type = ?").setInteger(0, type).list();
	}
}
